import 'package:test/test.dart';

import 'package:sow_app_mock/sow_app_mock.dart';

void main() {
  group('home controller test group', () {
    final MockHomePresenter presenter = MockHomePresenter();
    final controller = MockHomeController(presenter, MockRestClient());
    test("should present valid user when invoke initUserInfo", () async {
      await controller.init();
      await Future.doWhile(() => presenter.flag = false);
    });
  });
}
